<div class="grid_6" id="loginContainer">
  <?php if(isset($usuarioInvalido) and $usuarioInvalido): ?>
    <label class="formErrors"><?php echo $usuarioInvalido ?></label>
  <?php endif; ?>
  <?php echo form_open('login'); ?>
    
    <?php echo form_label('Usuario','username'); ?>
    <?php echo form_input('username',set_value('username')); ?>
    <?php echo form_error('username','<label class=formErrors>','</label>'); ?>
    
    <?php echo form_label('Clave','password'); ?>
    <?php echo form_password('password',set_value('password')); ?>
    <?php echo form_error('password','<label class=formErrors>','</label>'); ?>   
    
    <?php echo form_submit('submit','Conectarse'); ?>
  <?php echo form_close(); ?>
</div>
